package cn.itcast;

import java.nio.charset.StandardCharsets;

public class ByteTest {

    public static void main(String[] args) {
//        final byte[] bytes = "-".getBytes();
        final byte[] bytes = "你".getBytes();
        for (byte aByte : bytes) {
            System.out.println(aByte);
            System.out.print(Integer.toHexString(aByte & 0xff)+" ");
        }
    }
}
